// import './assets/css/styles.less'
import { createApp } from 'vue'
import App from './App.vue'
/*路由*/
import router from '@router/index'


/*pinia*/
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/index.css'
import './assets/css/style.scss'
const store = createPinia()
store.use(piniaPluginPersist)
// 国际化
import i18n from './locales/index'
// 创建 Vue 应用
const app = createApp(App)
app.use(store)
app.use(router)
app.config.globalProperties.$t = i18n.global.t
app.use(i18n)

app.mount('#app')
// 注册 ElementPlus 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

